﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace CTP.Entitys
{
    /// <summary>
    /// 回报
    /// <para>'Report'从fix协议引用</para>
    /// </summary>
    public struct OrderReport
    {
        /// <summary>
        /// 时间
        /// </summary>
        public string TimeStamp;
        /// <summary>
        /// 资金帐号
        /// </summary>
        public string Account;
        /// <summary>
        /// 合约
        /// </summary>
        public string Code;
        /// <summary>
        /// 原始报单引用
        /// </summary>
        public string OrderRef;
        /// <summary>
        /// 单号
        /// </summary>
        public string OrderID;
        /// <summary>
        /// 成交数量
        /// <para>分笔</para>
        /// </summary>
        public int FilledQuantity;

        /// <summary>
        /// 成交价格
        /// </summary>
        public double Price;

        /// <summary>
        /// 买卖方向
        /// </summary>
        public Side Side;

        /// <summary>
        /// 开平方向
        /// </summary>
        public OpenClose OpenClose;

        /// <summary>
        /// 备注
        /// </summary>
        public string Note;
    }
}
